package com.xzj.admin.flow.domain.vo.edge;

import com.alibaba.fastjson2.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xzj.admin.flow.util.FlowCommonUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @program: xzj-admin
 * @ClassName: FlowEdgeVo
 * @description: 流程连线类
 * @author: XiaZunJun
 * @create: 2024-09-27 09:53
 */
@Data
public class FlowEdgeVo implements Serializable {
    /**
     * 连线Id
     */
    @Schema(name = "连线Id", description = "")
    private String id;


    /**
     * 连线类型
     */
    @Schema(name = "连线类型", description = "")
    private String shape;

    /**
     * 顺序
     */
    @Schema(name = "顺序", description = "")
    @JsonProperty("zIndex")
    private Integer zIndex;

    private FlowEdgeLinkVo source;

    private FlowEdgeLinkVo target;

    @Schema(name = "连线扩展信息", description = "")
    private JSONObject attrs = FlowCommonUtil.buildEdgeAttr();
}
